package com.nmbb.vlc.util;

import android.os.Environment;

/**
 * Created by yt-010 on 2016/8/20.
 */
public class UriUtils {
    public static final String V_LOCAL = Environment.getExternalStorageDirectory() + "/Movies/hd.mp4";
    public static final String V_STREAM_COPY = "http://2449.vod.myqcloud.com/2449_22ca37a6ea9011e5acaaf51d105342e3.f20.mp4";

    public static final String BASE_URL = "http://10.5.5.9/gp/gpControl/";
    public static final String PORT_URL = "http://10.5.5.9:8080/gp/gpControl/";
    public static final String COMMAND = "command/";
    public static final String LIVE_STREAM = "udp://10.5.5.9:8554";

    //rts   live stream
    public static String rtStream() {
        return BASE_URL + "command/setup/data_time?p=%10%08%14%0e%30%0e";
    }

    //stop stream
    public static String stopStream() {
        return PORT_URL + "/execute?p1=gpStream&c1=stop";
    }

    //restart stream
    public static String restartStream() {
//        return PORT_URL + "execute?p1=gpStream&a1=proto_v2&c1=restart";
        return PORT_URL + "execute?p1=gpStream&c1=restart";
    }

    //test
    public static String test() {
        return PORT_URL + "status";
    }
}
